package org.javaboy.redis;

import java.io.IOException;

public class Demo01 {
    public static void main(String[] args) throws IOException {
        RedisClient redisClient = new RedisClient();
        String auth = redisClient.auth("123");
        System.out.println("auth = " + auth);
        String set = redisClient.set("name", "wangwu");
        System.out.println("set = " + set);
        String name = redisClient.get("name");
        System.out.println("name = " + name);
        redisClient.close();
    }
}
